<template>
  <div>
    <div>
      <div v-if="row.share_user">
        <span>分享者：【{{ row.share_user }}】：</span>
        <span><price :row="row" field="share_user_sum" /></span>
      </div>
      <div v-if="row.primary_user">
        <span>一级分销：【{{ row.primary_user }}】：</span>
        <span><price :row="row" field="primary_distribution" /></span>
      </div>
      <div v-if="row.secondary_user">
        <span>二级分销：【{{ row.secondary_user }}】：</span>
        <span><price :row="row" field="secondary_distribution" /></span>
      </div>
    </div>
  </div>
</template>

<script>
import Price from './price'
export default {
  components: {
    Price
  },
  props: {
    row: {
      type: Object,
      default: _ => {
        return {};
      }
    }
  }
}
</script>

<style scoped>

</style>
